//-----------------------------------------------------------------------------
#ifndef __CMYDOUBLE_H__
#define __CMYDOUBLE_H__
//-----------------------------------------------------------------------------
class CMyDouble {
    public:
        CMyDouble(void);
        CMyDouble(const CMyDouble& other);
        CMyDouble(double value);

        static CMyDouble fromDouble(double value);
        double toDouble(void) const;
        bool hasDecimaux(void) const;
        bool isNull(void) const;
        QString toString(void) const;
        CMyDouble& operator=(CMyDouble other);
		void addEntier(unsigned v) { null = false; entier *= 10; entier += v; }
		void addDecimal(unsigned v) { null = false; decimaux *= 10; decimaux += v; inBeginDecimaux = false; }
		void beginDecimaux(void) { inBeginDecimaux = true; }
    private:
        unsigned long entier;
        unsigned long decimaux;
        bool null;
        int signe;
		bool inBeginDecimaux;
};
//-----------------------------------------------------------------------------
#endif //__CMYDOBLE_H__
//-----------------------------------------------------------------------------
